﻿#pragma once
#include "Interpolator.h"

namespace yzrilyzr_interpolator{
	ECLASS(PowInterpolator, public Interpolator){
	public:
	double x1=0;
	//(1,+) (-,-1)指数，(0,1) (-1,0)根号
	PowInterpolator(double x1) : x1(x1){}
	PowInterpolator(){
		static double min=-50, max=50;
		registerParam("x", yzrilyzr_util::ParamType::Double, &x1, &min, &max);
	}
	u_normal_01 y(u_normal_01 x) override;
	yzrilyzr_lang::String toString() const override;
	};
}